package ch11_多线程与并发;

public class Producer extends Thread{
	Repository repo;
	public Producer(Repository repo) {
		this.repo = repo;
	}
	
	public void run() {
		for (int i = 1; i < 6; i++) {
			repo.put(i);
		}
	}
	
}
